package com.wondertek.poms.service.controller;

import com.wondertek.poms.common.vo.ResultBean;
import com.wondertek.poms.core.service.ICpInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenjijiang
 * @description
 */
@Api(value = "CpInfoController", description = "版权所属cp 接口")
@RestController
@RequestMapping(value = "/cp-info")
public class CpInfoController {

	@Autowired
	private ICpInfoService cpInfoService;

	/**
	 *
	 * @return 版权所属cp 全量列表
	 */
	@ApiOperation(value = "版权所属cp 全量", notes = "所有版权所属cp")
	@GetMapping("/list/all")
	public ResultBean getAll() {
		return ResultBean.ok(cpInfoService.findAll());
	}

}
